package com.zhentao.controller;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.LikesService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author 王越潇
 * @version 1.0
 * @Date 2024/10/6 23:10
 * @Type
 */
@RestController
@RequestMapping("ma/likes")
public class LikesController {
    @Resource
    private LikesService likesService;
    @GetMapping("findById/{friendId}")
    public ResponseResult findById(@PathVariable("friendId")Integer friendId){
        return likesService.findById(friendId);

    }
}
